//
//  UIViewController+WKDrawCategory.m
//  WeKeTang
//
//  Created by ichina on 2017/8/31.
//  Copyright © 2017年 Dezhi Tiancheng Education Technology (Beijing) Co. Ltd. All rights reserved.
//

#import "UIViewController+WKDrawCategory.h"
#import "WKDrawerViewController.h"

@implementation UIViewController (WKDrawCategory)

- (WKDrawerViewController *)drawViewController{
    return (WKDrawerViewController *)[UIApplication sharedApplication].delegate.window.rootViewController;
}

- (void)DrawerPushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    [self.drawViewController backMainVc];
    [self.drawViewController.currentNavController pushViewController:viewController animated:animated];
}

- (void)DrawerOpenVC{
    [self.drawViewController openLeftMenuVc];
}
@end
